@import "reset.css";
@import "public.css";

@shandom: 5px 5px 15px 0 #ccc;
@color: #80c4ae;

body {
    background: #fafafa;
}

#header {
    margin: 0 auto;
}

//选项
#select {
    background: #f2f2f2;

    .select {
        background: #f2f2f2;
        height: 60px;
        padding-left: 24px;
        line-height: 60px;
        color: #3f3f3f;
        font-size: 14px;

        span {
            margin-right: 25px;

            &:nth-child(5) {
                color: #777;
            }
        }
    }
}

//视频点击处

#video_btn {
    height: 582px;
    margin-bottom: 20px;

    div {
        &.left {


            height: 582px;
            width: 860px;
            float: left;
            padding: 20px;
            box-sizing: border-box;
            background: #fff;

            img {
                height: 542px;
                width: 820px;
            }


            box-shadow:@shandom;
        }

        &.left1 {
            display: none;
            float: left;
            height: 580px;
            width: 860px;
            margin-right: 15px;

            video {
                outline: none;
                height: 580px;
                width: 860px;
            }
        }

        &.right {
            width: 272px;
            margin-left: 48px;
            padding-top: 75px;
            float: left;

            p {
                &:nth-child(1) {
                    font-size: 22px;
                    line-height: 22px;
                    margin-bottom: 18px;
                    font-weight: bold;
                }

                &:nth-child(2) {
                    span {
                        display: block;
                        font-size: 14px;
                        line-height: 30px;
                        color: #424242;
                    }

                    margin-bottom: 36px;
                }

                &:nth-child(3) {
                    color: #424242;
                    font-size: 14px;
                    line-height: 30px;
                    margin-bottom: 78px;

                    span {
                        display: block;

                        b {
                            color: #ff6666;
                        }
                    }

                }

                &:nth-child(4) {
                    height: 50px;
                    width: 260px;
                    line-height: 50px;


                    span {
                        &:nth-child(1) {
                            color: #74c6b3;
                            font-weight: bold;
                            font-size: 28px;
                            float: left;
                        }

                        &:nth-child(2) {
                            float: right;
                            height: 46px;
                            width: 128px;
                            border: 2px solid #74c6b3;
                            border-radius: 5px;
                            text-align: center;
                            line-height: 46px;
                            font-size: 16px;
                            color: #76c7b4;
                            cursor: pointer;
                        }

                    }
                }

                &:nth-child(5) {
                    height: 48px;
                    width: 260px;
                    background: #74c6b3;
                    color: #fff;
                    font-size: 16px;
                    line-height: 48px;
                    margin-top: 11px;

                    span {

                        &:nth-child(1),
                        &:nth-child(3) {
                            width: 129px;
                            float: left;
                            text-align: center;

                        }

                        &:nth-child(1) {
                            width: 130px;
                        }

                        &:nth-child(2) {
                            float: left;
                            margin-top: 16px;
                            background: #fff;
                            width: 1px;
                            height: 18px;
                        }
                    }
                }

            }
        }

        &.right1 {
            display: none;
            height: 580px;
            width: 305px;
            float: left;

            &>div {
                &:nth-child(1) {
                    width: 262px;
                    margin: 20px 20px 8px 20px;
                    border-bottom: 1px solid #e0e0e0;

                    button {
                        height: 35px;
                        width: 81px;
                        border-radius: 4px;
                        cursor: pointer;
                        outline: none;
                        border: none;
                        font-size: 14px;
                        background: #fafafa;

                        &.cur {
                            background: @color;
                            color: #fff;
                        }


                    }
                }

                &.list {

                    height: 517px;
                    overflow: auto;

                    div {
                        p {
                            font-weight: bold;
                            line-height: 46px;
                            font-size: 16px;
                            padding-left: 26px;
                        }

                        ul {
                            li {
                                height: 40px;
                                cursor: pointer;
                                font-size: 14px;
                                padding: 0 20px 0 26px;

                                span {
                                    &:nth-child(1) {
                                        float: left;
                                        line-height: 40px;
                                    }

                                    &:nth-child(2) {
                                        float: right;
                                        height: 18px;
                                        background: @color;
                                        width: 18px;
                                        border-radius: 50%;
                                        color: #fff;
                                        line-height: 18px;
                                        text-align: center;
                                        font-size: 14px;
                                        margin-top: 12px;
                                    }
                                }

                                &.active {
                                    background: #e1efeb;
                                    color: @color;

                                }
                            }
                        }
                    }
                }

                &.discuss {
                    display: none;
                    margin: 10px 20px 0px 20px;

                    textarea {
                        height: 82px;
                        width: 264px;
                        border: 2px solid #f0f0f0;
                        box-sizing: border-box;
                        border-radius: 4px;
                        outline: none;
                        margin-bottom: 10px;
                    }

                    button {
                        height: 30px;
                        width: 54px;
                        background: @color;
                        color: #fff;
                        text-align: center;
                        line-height: 30px;
                        outline: none;
                        border: none;
                        border-radius: 4px;
                        margin-left: 210px;
                        cursor: pointer;
                    }

                    ul {
                        margin-top: 5px;
                        height: 380px;
                        overflow: auto;

                        li {
                            height: 85px;
                            border-bottom: 1px solid #f0f0f0;
                            padding-top: 20px;

                            p {
                                &:nth-child(1) {
                                    margin-bottom: 10px;
                                    font-size: 14px;

                                    span {
                                        &:nth-child(1) {
                                            float: left;
                                            height: 36px;
                                            width: 36px;
                                            background: #d8d8d8;
                                            border-radius: 50%;
                                            margin-right: 10px;
                                        }

                                        &:nth-child(2) {
                                            float: left;
                                            margin-top: 10px;
                                        }

                                        &:nth-child(3) {
                                            float: right;
                                            margin-top: 10px;
                                        }
                                    }
                                }

                                &:nth-child(2) {
                                    font-size: 14px;
                                }
                            }

                        }
                    }
                }
            }
        }

    }
}

//授课师资

#teacher {
    height: 156px;
    box-shadow: @shandom;
    background: #fff;
    padding: 24px 0 0 22px;
    box-sizing: border-box;
    margin-bottom: 20px;

    h3 {
        font-size: 20px;
        line-height: 20px;
        margin-bottom: 26px;
    }

    div {
        padding: 8px;
        img{
            float: left;
            height: 62px;
            width: 62px;
            border-radius: 50%;
            background: #d8d8d8;
            margin-right: 20px;
        }
        &>span {
            float: left;
            &:nth-child(3) {
                height: 50px;
                width: 1px;
                background: @color;
                margin: 8px 34px 0 30px;
            }


        }

        p {
            float: left;
            height: 62px;
            padding-top: 6px;

            &:nth-child(2) {
                span {
                    display: block;

                    &:nth-child(1) {
                        font-size: 18px;
                        line-height: 18px;
                        margin-bottom: 14px;
                        font-weight: bold;
                    }

                    &:nth-child(2) {
                        font-size: 16px;

                    }
                }
            }

            &:nth-child(4) {
                width: 838px;
                float: left;
                font-size: 16px;
                line-height: 18px;
                color: #4f4f4f;

            }
        }
    }
}

//课程目录与详情

#catalog {
    background: #fff;
    padding-bottom: 4px;
    margin-bottom: 50px;

    &>p {
        height: 66px;
        background: #fff;
        box-shadow: @shandom;
        text-align: center;
        margin-bottom: 14px;

        button {
            outline: none;
            height: 66px;
            width: 80px;
            display: inline-block;
            background: #fff;
            text-align: center;
            font-size: 14px;
            line-height: 66px;
            border: none;
            cursor: pointer;

            &.cur {
                background: @color;
                color: #fff;
            }
        }
    }

    //课程目录
    .catlog {
        div {
            padding: 0 40px 0;
           

            &>p {
                font-weight: bold;
                font-size: 16px;
                color: #3b3b3b;
                line-height: 52px;
                cursor: pointer;

                b {
                    float: left;

                    &:nth-child(2) {
                        float: right;
                    }
                }
            }

            ul {
                display: block;

                li {
                    &:hover {
                        background: #e5f3ef;
                    }


                    &:hover span {
                        &:nth-child(4) {
                            display: block;
                        }

                        &:nth-child(3) {
                            display: none;
                        }
                    }


                    height: 40px;
                    line-height: 40px;
                    cursor: pointer;


                    span {
                        float: left;
                        font-size: 14px;

                        &:nth-child(1) {
                            margin-top: 9px;
                            height: 22px;
                            width: 22px;
                            background: @color;
                            font-size: 12px;
                            line-height: 22px;
                            text-align: center;
                            border-radius: 50%;
                            color: #fff;
                            margin-right: 16px;
                        }

                        &:nth-child(3) {
                            float: right;
                            // display: none;
                        }

                        &:nth-child(4) {
                            display: none;
                            margin-top: 4px;
                            line-height: 28px;
                            text-align: center;
                            float: right;
                            height: 28px;
                            width: 98px;
                            border: 2px solid @color;
                            background: #e5f3ef;
                            color: @color;
                            margin-right: 20px;
                        }

                    }
                }
            }

            // &:nth-child(4),
            // &:nth-child(5),
            // &:nth-child(6) {

            //     ul {
            //         display: none;
            //     }
            // }
        }


    }

    .detail {
        display: none;

        &>img {
            width: 1180px;
        }
    }


}

#detail {
    display: none;
}

//展开收起按钮

#btn {
    text-align: center;
    color: #74c6b3;
    text-decoration: underline;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 80px;
}